//
//  AdvertStateRequest.swift
//  Exchange
//
//  Created by 孟祥群 on 2018/6/20.
//  Copyright © 2018年 common. All rights reserved.
//

import UIKit

class AdvertStateRequest: BaseRequest {
    var states:Int? //0 下架 1 上架
    var inforId:String = ""
    override func path() -> String {
        if states == 0 {
            return Api.Trade.advertistStatesDown + inforId
        }else {
            return Api.Trade.advertistStatesUp + inforId
        }
    }
    override func method() -> HTTPMethodType {
        return .put
    }
    override func openIndicator() -> Bool {
        return true
    }
}
